package com.greenyoung.pwiki.elasticsearch.search.entity;

import com.mysql.cj.conf.PropertyDefinitions;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel(value = "需要查询的条件")
@Data
public class FrontedQuery {

    @ApiModelProperty(value = "要查询的关键字")
    private String keyword;

    @ApiModelProperty(value = "要查询的内容类型")
    private String type;

    @ApiModelProperty(value = "筛选的标签")
    private List<String> tags;

    @ApiModelProperty(value = "是否原创")
    private boolean isOriginal;

    @ApiModelProperty(value = "文章创建时间开始时间")
    private Date startTime;

    @ApiModelProperty(value = "文章创建时间结束时间，根据开始时间和结束时间查询文章")
    private Date endTime;
}
